package com.shixun.dds_11.mapper;

import com.github.pagehelper.Page;
import com.shixun.dds_11.entity.DdsGoods;
import com.shixun.dds_11.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shixun.dds_11.vo.UserQueryVO;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author YSP
 * @since 2024-07-05
 */
public interface UserMapper extends BaseMapper<User> {

    void add(User user);

    @Select("select username, email from dds_user where id = #{id}")
    UserQueryVO getById(Integer id);



}
